Fixed bug in eye gain script.