Bad idea to override Entity::bundle(). Use FileEntity::updateBundle() instead.