Fixed psample bug with tune