Fixed my funcnum funciton