fixed bug at terrain