Fixes insert method