Fixed determining new startx.
Merge pull request #1 from lothrop/master

Fixed determining new startx.