fix instert bug