fixed weird slidy bug