fixes minor issue with generating migrations