Attempt to fix nil error