Fixed migrations
Fixes on management commands