Hotfix weight table, writeback, chunking test

Iss this correct?  Where did the "WHERE" go?

Why is this } just commented out? If it is not needed anymore remove it.