[Fix] Issue with sorting and pixelmask