It's a problem with your level or with your model.
I've created a simple map and tested it, the code is fine and works without problems.


POTATO-MAN saves the day! - Random