Fix if ruby statements