fix modal problem