fix layer hit testing