Fixed buffer-printing and mode selection bugs