Fixed some errors that were driving me crazy

fixed some errors