fixes error where print payform button doesn't work