fixed more warnings during compile