fixed broken registration