Fixed bug on non-constant buffer types and added an explanation.