fix bug with attack on left click