fixes crashes by passing in obj instead of object