Fix compiler warnings
Fix typo and remove all compiler warnings