Fix obstacles logic

Signed-off-by: Kiril Nesenko <knesenko@redhat.com>