fixing the bug with current revision