Fix bug that double some tables when server restart.
Fix bug that shows sometimes small images in the index instead of normal
size images.
oter stuffs.