Bug fixes: Element check in filter_prlog and r6_bind_to was wrong.