Fixed small bugs in migrate posts