Fixing migrations error