fixed bug in determining overlap frame