Fixing ANSI warnings