fix 2 warnings