Changed deprecated calls

Just changed deprecated calls