Fixes issue where modal size was not being set correctly.