Fix hom_w calculation
Merge pull request #72 from mrdomino/master

!!! Fix hom_w calculation