fixed erb bug