Fix Revision Check logic

wow, this was an error for ages.