Hacky fix for permissions issue