fixed multiple registration problem