fixes  #2221

fixed the issue.

Please check.