Fixed the return for getValue