fixed errors on boundaries for freeflow for self-gravitating fluid