Fix uncompilable function