Fixed BELONGS_TO bug