fixed issue with migrations