Fixed 101 bugs