Removed stupid flag in mask loop.