Fixed reference to incorrect attributes