Fixed hide and remove functions.