Fixing code error due to errant double click