Fixed bug with using the wrong getter.