small fix (error + warnings)