Fixed countless warnings