Wrong logic in layers class

Signed-off-by: emanuele <emanuele45@gmail.com>
Missing require_once

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #507 from emanuele45/quick_fix

Quick fix
/me needs these...