After so many hours of NPE everything works now. Yupeeee