fix registerInBackground function
v4.6