fix 2 error logs and 1 syntax error