resolved bugs

fixed the the doubles constructor