Fixed a segfault when not using get/set functions