fix deperacation error