Fixed the bug about not getting values