Fixed other warnings in the code.