fixing if statements in sample html fragment
version 0.6.0