fix panels array length