Solved the problem when reload the layer, updateing the layer sql