flat formatting bug fix