NPE on duplicate synthetic references