Fixed finding intial x code.