Fix some types and frame buffer name error.