You make a very good point, I apologise if you were disappointed! I only took out around 3-4 days to write the whole script so I had a feeling it would be dodgy in some areas.
I'm really glad you brought this to my attention though! I'll try to do better next time!