Fixing the compiling task apparently wrong method