[Layout]: Fixed an issue when using PostgreSQL as database driver