wrong variable renamed in list api error puts

simple rename here