fixed valid class character bug + modal size