fix bug in isResLife