fixed issue  #2464

@vigsterkr fixed #2464