Bug fix in creation of Masks.
Authored by: bruno.herbelin@gmail.com 2013-04-07
Parent: [r592]
Child: [r594]