Fixed mistake with getting method.