For some reason error checking isn't working. Changed a minor thing that may help.