Fixed some bugs with deleteFrame, search
Delete working correctly