Fixed deprication warning from Chrome.