Fix bug with error in assets