fixing issue with displacement