Fixed all warnings