Fixed check for revision change