Main menu bounces back to the top

When changing a slave's assignment on the main menu, the game has gone back to jumping to the top of the page instead of staying where it was.