fix for two compiler warnings