fixed undefined "=" bug