bug fix on public assets controller