Fixed the behavior of private methods.