Fix compatibility patch