fixed bug with double registration window