fix scan direction;