In Firefox was not sorting frames list correctly. Fixing it!