Bug fix on insert function