Fixed normalize

Normalize was using divide method with a wrong parameter. Should be a vector.