fix defines
fix b:append & b:prepend behaviour when no ref attribute (append/prepend to element)