fixed bug with Rails lock prefixes