Fixed cin problem