Fixed showing buttons on header when a file opened.