Youngsters are being put in the "potential for risk of harm" at a Cumnock care home for vulnerable young people, according to a report.
The otherwise glowing Care Inspectorate report mentioned that errors were found at Highview, on the outskirts of the town, relating to the recording and storage of the medication.
A report, published last week, said "There were inconsistencies in how medication administration was conducted, medication had been stored in the wrong boxes and an error in the medication count was not reported and therefore not acted upon.
"This created the potential for risk of harm to the young people and will be an area for improvement."
The rest of the report was full of praise for the service, with staff being described as "warm" and "trusting" in the recent watchdog report.
Highview provides a specialist care service and safehouse to children under the age of 18 who have been victims of abuse and neglect.
The unannounced inspection was carried out by the Care Inspectorate over two days in March, using a six point scale, where 1 is unsatisfactory and 6 is excellent.
Highview, at Over Glaisnock, was given four out of six, meaning it was rated 'good', in the key category of supporting the rights and wellbeing of children and young people.
Other key messages from the report included that young people were safe, relationships between staff and young people were strong, and the focus from management and staff on promoting and upholding young people's rights.
In their report on the inspection, published last week, the Care Inspectorate team said: "The safety of the young people was a priority for the team.
"Young people were confident that their staff team always acted in their best interests.
"Young people had access to adults outside the service such as independent reviewing officers who ensured that their rights were being met."
According to inspectors, young people experienced therapeutic and stable care.
Each young person has a large comfortable bedroom, and the house was decorated to a high standard and was comfortable and relaxed.
The report added: "The physical and mental health of the young people was a priority.
"Staff delivered therapeutic, trauma informed care and showed a good understanding of how trauma affected the lives of the young people."
A Pebbles spokesperson said: "Pebbles Care prides itself on providing high quality and nurturing care for children and young people who have a range of complex needs and a history of trauma.
"We work closely with the Care Inspectorate, our regulatory body in Scotland, to do so.
"The recent inspection at Highview reflects well on that home achieving and maintaining a Very Good standard of care for the children and young people who live with us.
"The manager and staff team at the home provide a care ethos and environment that enables the children and young people to grow, flourish and achieve good outcomes.
"The issues identified with management of medication have already resulted in us revising our procedures.
"Updated staff training is taking place to ensure that these issues are addressed, and we are confident that this will be reflected in any future visits by the regulator."
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules here