code style issues
bug fixed -->  Error #1009: Cannot access a property or method of a null object reference.