Fixed deprecated warning.