fix stack underflows, complex number integer check