Fix bug with slim