Fixed error in calling wrong function name