Fixed insert bug on empty inserts