fix wrong df output