fixed %ld warnings