Fix the vertical check

Fixes #1