fixed sprintf variable