Fixing issue with fos rest bundle