Fix max character rule