small change to prevent unnecessary function calls.

Change-Id: Iea588eee17c1e499d8e2a97ddb66d0f7fdae54d6