fix frame allocation assert
Merge pull request #4 from flavioribeiro/master

Fix frame allocation assert