Disable attributes after drawing