minor correction to liquid if statement