Fixed depricated method calls