Fixing get() function