compile bug errors fixed