Permission to use object denied? any help to fix this error?