fixed syntax errors causing whitescreen of death error