bug fix: related to energy and RHFB, archieve optimization