It was giving an error for an undefined variable