Fixed bug on always failing checkInteger