Cleaned head title logic per issue #1253