Fixed bug so that methods that are passed methods could be properly parsed