Fix for bug preventing sticky flag being removed.