fixing wedding bug