Fixed bug regarding the versions previous to 5