fix problem with mnesia not being started