fixed minor bug in respawn

Signed-off-by: Andrew <ndrewniklas@gmail.com>