fix regression bug introduced by last commit