fixed problems found via 'use strict'