CON-1809 | Fix overlapping of anchored element

Please do not use globals.