fixes error when there's no input for belongstomany

Gave an error in Bauhaususer