fixed wherex/y return value