fixed 2 warnings