Fix titlebar when back is pressed. Fixes #332