fix bug in shape of zero buffer reported by Jonathon Masci and Rupesh Srivastava

Srivastava