Fixed np issue with clip