Cosmetic and asserts
minor posix fix