fixed three warnings in scotch_6.0.1rc2