working only registry issue