Fixed a bug in the get method.