Fixed character restriction bug.