fix for stupid resist bug