Fixed warning as error problem