fixes positioning of text if there is text and location isn't defined