Fixes flash layout