fix to the modal can fit method