Fixed profile removal bugs