fix bug preventing integer  functions