corrected compile bug