Fix #1 - correctly select type when editing issue.