fixed bugs with leap commands