bugfix commit fixed few referenced before assignment
bugfix commit fixed few referenced before assignment

neox387/premiumizer,piejanssens/premiumizer,piejanssens/premiumizer,neox387/premiumizer,piejanssens/premiumizer,neox387/premiumizer,piejanssens/premiumizer,neox387/premiumizer