 When Mackenzie Phillips (qv) left the show the second time around,  her character Julie was written out by first going away for training  for her job and then having her leave Max and their daughter Annie.  Phillips left the series due to documented substance abuse problems.