For some reason it works out of the box in my live gallery, but I get the same result like you in my testbed (probably related to the gallery settings). However, we can fix this in the plugin code.
Open codebase.php, find
[code] $qu...
Open codebase.php, find
[code] $qu...