fix a regression bug in 5f3a306