fixing the get method bug