Bug fix in proftable
Changed theme_nr to a proper function, allows changes