fixed compilation warnings