Work around prolog parser bug