Forgot to reset type on modal close button. Close #48