fixed idempotent ordering bug, fixes #12