I'm not really sure, but try this
var vel: Vector2 = Vector2.ZERO
or
var vel: Vector2 = Vector2(0,0)
maybe it is because the vector variable is null or something like that, in both cases you will set x and y to 0
if i'm wrong please correct it
Sorry if my english is bad