Fixes bug in legned vertical alignment while clicking on items