Fix negative rpnesil mask issue