fixed ordering issue in importObject function