Fixed access denied bugs