fix a couple of bugs in markSparkQueue (#799)