Changed buffer resize