Avoiding unexpected IllegalArgumentException - I just need only one of them (Above or Behind), not both