fix function in topic 101344