You can sometimes be a little over the limit if you have queued more ships to build than you have yards to count. The server tries to count up what you have queued for multi-build orders, but it's not always correct as factories can all be running on different threads. If you're fifty ships over the limit, then that's really a bug.