FREQUENCIES: Fixed crash when there was no valid data