Fixed bug with deprecated check.