Fix error in handling chown