fix for courtain and transitions