fixed bug with type for startx / starty