fixed warning using SDK7