Fixed modal bug.