2 fixed unassigned reshapes in em (#3674)
Merge pull request #2796 from berak:b_3674_24