Fix a typo that caused a crash on paste