Fix the bug which can modify DB's structure