Fix package register call