Fixing compiling errors 6