workaround for modal position bug