Y1 and x rail problems

Possibly try a solution with the following?