Fixed miranda bug in terry