Stop in for a cup of coffee

So if I understand correctly. You did a dry fit and it came close to the wall. You unscrewed it applied some kind of thread sealer and now it won't go in as far? What did you put on the threads.