Merge pull request #312 from fusionbox/fix-debug

Fix error raising in FILER_DEBUG mode
fixed migration for custom users