Fixed extension check
Revert "Fixed extension check"

This reverts commit 8960964a9f75bd109eda4dcaab53346171066d1c.
Revert "Fixed extension check"