BUG: fix broadcasting shapes