Fixing complier errors