Fixed errors when migrating comments.