fixed problems in recent additions

should be self-explanatory.