stack smashing fixed