Fix bug where selected problem was not updated.