fixing bugs for the placeholders