Called the wrong function