fix head() call