There's no "fix" as such, if it's out then something isn't fitted correctly.
Check the BB is fitted properly: is there a gap between the cups and the frame?
Are the cranks fully on? Hold the ends of the crank arms and try and wobble it left to right: there shouldn't be any play.