Fix a bug of the fixed tablename in insert function