Fix a little bug in thermostats table creation script