How to fix the Swinging/Swivel problem of Overhead Crane movement?

During forward or backward movement of Crane Bucket is Swiveling. But if it swivel it's problematic for me. I need to stop this kind of swivel during crane movement. I need a low cost solution to stop this kind of Swiveling
Maximum Crane capacity is 1000 kg , will be control it by PLC, that's why start & stop position is important
Accepted answer

Here is simple and inexpensive method. Add two stiffed S. Steel cables from bean to bean, modify the handles of the basket. It is only a general idea, it requires work on the basket handles for guide on the up motion of the "Z" axis movement for alignment. You can attach sensors on the cables for your PLC Control system.
If you had plans to use a PLC Control, you should have implemented a motorized rack and pinion system on the "Z" axis, or a pneumatic system, or a screw system. Good Luck