Fixed randrange error