fix issues with syntax error