Fixing bug Declaring static properties and use it as object