Trying to fix Register