Fixed issue with gems not loading properly