Fixed small error in return mask