fix cross compatability