fixes logo hiding logic