correct some minor syntax to not spam the error.log