Fixed duplicated registering to admin.