Fixed update resource function if secondary port speer eq 0