fix non-array declaration bug