migration 13 type bug fixed