Fixed registration bug (now works)