Custom markers error fix