fixes  #3119

Fixed the issue in master.

Please check.