Fix error in setter and getter