fixed bug regarding re-allocating order sequence upon create and delete
ref #25