fix tail log buffer readonly