Prevent errors from non-existing edge sides