Fix bug due to type (Mode.COLLECtion -> Mode.COLLECTION)