Fixed a bug introduced in commit 0916d2cf3b

Fixed a bug introduced in commit 0916d2cf3b