fixed small bug in getAction method. Issue #1