bugfix: startx, starty referenced before assignment