fixed the error causing response