fix the type of the mapping