fix the modal panel