Fixed bugs (empty if statements).