bug on 1 to many relation