fixed some small problems