Fixes compiler warnings