Fixed horrible 'no parent' bug