fixed oneshot compile bug with array classes