fixed warning check