Fix fatal error caused by undefined method

Change-Id: I5ca6df0bdbec31e7f95ecd6779ccd8a942999940