writeMenuContent fixed for Boundaries