Fix issue #2191.

Signed-off-by: Edwin Aw <tkaw220@gmail.com>