fixed sprintf invalid error
cleanup