fixed erreor involving list