fixed array bug in runonce