Hotfix for checking heights with corners