Empty title check fix