incompatibility fix in rails versions