Fixing compiling errors 7