Fixed weird compiler errors