Some fixes in code where was syntax errors