prevent black screen on parse error