Fix register_temp params taken in wrong order!