modified formatting method to reset flipped direction flag. fixes #5