Fix sparse warnings