Bug fixed on check