Fixed errors with add custom type modal.