Adding Script to Fix Table Structure