fixed critical bug
reuploading previous fix