fix integer check