fix max raylength