fixed bug with extensions