fixed potential energy display bug