fix ERB bug