fixed some small erorrs