Fix when only single value is passed in m2m field