fix integer? function bug