Double click flag for this to work properly.
Thanks to @nyami20 for the original project https://scratch.mit.edu/projects/442113644