bugfix for modal dimensions