Fix asset read-only check