Minort bugfix