Bug fixes while sidebar drawn. Styles correction for units