Fix packages registering