fixed bug with double click not changing class