Fixed small bug with method definitions in classes.