Cleanup in register