fixes broken route do/end statement