fix specs and migration