fixed modal loading bug.