Changed firstOption to headOption	

Fixes error in eclipse