The causes of heart defects, such as TAPVR, among most babies are unknown. Some babies have heart defects because of changes in their genes or chromosomes. Heart defects also are thought to be caused by a combination of genes and other risk factors, such as the things the mother or fetus come in contact with in the environment or what the mother eats or drinks or the medicines she uses.