fixed bug in handling of multiple consecutive raw directive endframe statements