fixed registration bug hopefully?