Vertical offset error fixed

Fixes #2