Fix issue when frame instance was passed as positional argument