fixed offset problems with modal dialogue