fixed compile (syntax) error handling