fixes bug in spradrn