Fix bug where selection was invalid

also made text overlay prettier