fix main for revision not set