Fixed warn check