Fix advertise function, locked function anh css