Resolves #130
Cleaned and small modification in sp vector layer control