fix bad positioning of modal