Fixed missing pointer initialization