Fixed Reflection so that it gets correct value. Updated dependencies

Fixed the Reflection issue, it works correctly now as it should. Also updated Dependencies.