fixed h5 resizing