This solves duplicate position issue on inserts. Fixes #108