Fix private method bug