fixed masking edge behaviour