Screw top metal guide into the top of the doorframe. Make sure that the guide is positioned so that the small metal hinge-rest (see in photo) is closest to the doorframe.
Since gravity is working against you, it may be difficult to screw in these screws without guide holes.

