I left out an if statement in this version that is in mine. I have added it in and it should be fine now.