nsert and locate fix