fixes  #2839

fixed the issue.

Please check.