Fixed uid permission denial during runtime