Fixed little bug after refactoring.