Handle POST_COST_VIRTUAL in print

Bug fix for #1046