Fixed bug from multiple method calls.