fixed roll max issue