fixed 'use strict' errors