Fixed bug with visibilities in EntityStore