minor bug fixes

two minor bug fixes for freq of alt