Fixed some compat

I guess you can change < 5 to ~= 5