fix error warnings