Fixed warning treated as errors