fixed some compilation warnings