fix style and parent relations