Remove extension, if exists