Fixed some bugs that prevented build