fix uncompilable code