Fix a bug where routes specified in the attribute call was triggering a syntax error.