fix bug with click