Well, two steps forward and one step back

We now have no problems with him going to the bathroom in the house, but he does pee in his crate. I think he has been doing this all along I just never noticed because of the much more nasty poo. I thought dogs weren't suppose to go where they had to sleep! It definitely cannot be because he has too much room because I only give him enough space to barely turn around. I don't understand how he can hold it inside and all through the night, but can not hold it in his crate. Silly dog. What can I do to try and stop this? (As a side note, I've never been on a website where I talked so much about bathroom habits

)