fix bug with button move