Layer negative fix

Please review. See issue #13