Fixed #976
Thanks @MuteTM for your cooperation