hopefully fix ClassCastException with dispensers