fix modal controller