fixed to allow max_long