Fixes flash pathes. Fixes #5686