fixed minor registration bug
closed #528