Fixed bug in quantdev