Actually it places blocks on whatever block is underneath it, but i just i figured out the problem which I had pressure plate next to flower and I take it was giving a signal not to place anything. Its working now.