Try to solve adapter not set problem