[Fixed] spawning inside structures

Change-Id: Ib79ee636ece0cdb73f555562ca1f5bd307fae5ea