fixed some bugs related to use strict