fixed a modal view bug