When the sheriff is alone on the scaffolding, the trap door is open. After he comes down, it is closed. No one is seen closing it.
When the little boy first walks up to the jail window to talk to Luis, his mouth is below the opening of the window. In the next shot, he is considerably taller.
The number of turns the rope makes around the scaffold increases at the very end of the show.