Corrections to stmt ordering for using diff schema