Fixes listener of components, that applies the visibility rule from the
botton to the top.