input fix buffer