Fixed typo that caused the 'unpatch' function not to be removed after being called.