small fix for insert method get caught on string value and not creating new object