Fixed the complier errors