Fixed some errors, but still cannot fully compile