Fixed printf formatting issues