Fixed one FRIB compile error and #437

Fixed one compile error, due to minor refactoring of core code by Kay.
Fixed the trend error #437.