fixes overflow in rb files