Fixed depricated warning