fixed a bug in the get() helper