fixed bug introduced in refactoring.