fix bug-1988

Patch for bug-1988