fix broken modal UI