Fix shadowsHidden bug