Fixed tons of warnings