Try using 0 instead of max