error fix while compiling