fixed bugs in flashvar handling