Fixed a bug with method actions