If you select a skill (or use a scroll) that needs a target and then cancel, that should also fix this.