correcting bug introduced by last commit