Syntax and Logic errors correction