fixed undefined year error and build for dev