fix fatal errors in code formatting