fix ground / sky detection