Fixes r.horizon - ticket #6760