Rookie mistake when refactoring :disappointed: