Fixed some complie errors