little fix on check