Fix life sample code.