Fixed vector::erase method

Change-Id: Ie505baf2115832a2a1caacc8d9aef3660635a07e