Fixed a vector bug and exanded vector interface