fix a bug in the get() method