Correct case with ugly person ID
Fix some bugs inside migration and filtering materials