fixed logging response issue