fixed bug with line pointing to wrong place when button is touched