fixed invalid vector initialization (closes #491)