Fixed deprecations warnings. Yeah I know, usefull commit.