Fixed a some compiler warnings