minor fix on frame parser