Fixed them not inserting in the correct order