fix issues with elems