fixed rendering mistake

1. Fixed rendering mistake.
2. return the result directly