fixes registration