Fixes registration errors