Minor bug in temp class