Fix method = type
Fix compatibility with old versions of $