fix buffer type 2