Cancel button didn't work