Fixed  #3040.