prevent bug for empty data