Fixed bug in layout where flash has was being rendered and shouldn't have been.