max_stack_size has to be an int