Fix for mongoID error