fixed problems in compiler