fix bugs with loading params from .properties files