fixed embarassing bug left over from refactoring to meet coding standards