var creation bugfix