fixed insert problem