fixed bug after restart after reg button search