fixed nasty warnings in sidebar