Fix frame allocation assert

It seems that the if that asserts that frame structures has been created successfully have a small error.