Fixed profile crashing issue.