fix energy cutoff use variable check