Fix issue of multiple consequtive calls.