Replace deprecated method

Change-Id: I1b79c172d032d96651d5b5c36cbf0c662081da28