fix logic error with frame dimension test.