ups, fix npe