fix "method return value" bug