BLD-449: Fix rearrange bug in problems.