bug fixes on masks