fix compatible warning