BLD-449: Fix rearrange bug in problems.
Merge pull request #1605 from edx/oleg/fix-rearrange-bug-in-problems

Oleg/fix rearrange bug in problems