Fix Rest controller for travis

In local this is okay, only just in the Travis has problems.