fixed handling of -Y