Bug in compiling