Fixed a small bug with methods.