fixed bug, used wrong argument to set temp constraints