Ooops, I've made an error in my integer check, fixed it now