Fixes selected type in history edit form