fix compile error: owned vector ~[] now immutable