Second commit: maked regitration #error repaired