Fixed FOSRestBundle bug