Added bug fix for issue on MongoYii