Fix crash on no hint in layout