minor fix to prevent getValue from returning null