bug fixes caught by "use strict"