fixed registration problem