Fixed popup positioning. Fixed #52.