fix issue #5173

#5173