fix problem with migrations