fixed extensions bug